package com.hzqy.persistence.dao.picture;

import java.util.List;
import java.util.Map;

import com.hzqy.web.vo.*;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Repository;

import com.hzqy.persistence.dao.core.PersistenceDao;

@Repository
public class PictureDao extends PersistenceDao<PmsUserVo, Integer>{
	protected final Logger LOG = LoggerFactory.getLogger(getClass());
	
	public List<CmPicturesRelationVo> picturesRelationSelectList(Map<String,Object> map) {
		return getSqlSession().selectList(this.getNamespace() + "selectPicturesRelationList", map);
	}

	public List<CmPicturesRelationVo> yhPicturesRelationSelectList() {
		return getSqlSession().selectList(this.getNamespace() + "selectYhPicturesRelationList");
	}
	
	public List<CmPicturesVo> selectPictureList(Map<String,String> map) {
		return getSqlSession().selectList(this.getNamespace() + "selectPictureList", map);
	}

	public List<CmPicturesVo> selectYHZPictureList(Map<String,String> map) {
		return getSqlSession().selectList(this.getNamespace() + "selectYHZPictureList", map);
	}
	
	public int insertPic(CmPicturesVo cmPicturesVo) {
		return getSqlSession().insert(this.getNamespace() + "insertPic", cmPicturesVo);
	}

	public int deletePic(Map<String,Object> map) {
		return getSqlSession().delete(this.getNamespace() + "deletePic", map);
	}
}
